package cate.game.role.system.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBSystem;
import cate.game.role.Role;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "战斗播放速率设置 の 返回")
public class PlayRateSetResp implements MsgOutput {

    @NoteField(value = "播放速率")
    public int playRate;

    public PlayRateSetResp(){
    }

    public PlayRateSetResp(Role role){
        this.playRate = role.getSystem().playRate;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBSystem.PLAY_RATE_SET_RESP;
    }
}
